// rollup.config.js
import json from 'rollup-plugin-json';
import resolve from 'rollup-plugin-node-resolve';

export default {
    input: 'src/main.js',
    output: [{
        file: 'dist/bundle.js',
        format: 'cjs'
    }, {
        file: 'dist/bundle.iife.js',
        format: 'iife',
        name: 'AV'
    }],
    plugins: [
        json(),
        resolve({
            jsnext: true
        }),
    ]
};